{template header}
<h4>排序字段留空表示删除此行</h4>
<form class="form-horizontal" action="index.php?c=admin&a=userChannel" method="post" enctype="multipart/form-data">
    <table>
      <thead>
        <th style="width:2px;">排序</th>
        <th>图片</th>
        <th>标题</th>
        <th>链接</th>
      </thead>
      <tbody>
        {loop $userChannel $k $menu}
        <tr>
          <td><input type="text" name="sorts[{$k}]" value="{$k}"></td>
          <td><input type="file" name="image_{$k}"><img src="{$menu['image']}"></td>
          <td><input type="text" name="titles[{$k}]" value="{$menu['title']}"></td>
          <td><input type="text" name="schemes[{$k}]" value="{$menu['scheme']}"></td>
        </tr>
        {/loop}
        <tr>
          <td><input type="text" name="sorts[]" value=""></td>
          <td><input type="file" name="image_x"></td>
          <td><input type="text" name="titles[]" value=""></td>
          <td><input type="text" name="schemes[]" value=""></td>
        </tr>
      </tbody>
    </table>
    
    <div class="control-group">
        <div class="controls">
            <button type="submit" class="btn">提交</button>
        </div>
    </div>
</form>

{template footer}
